﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace USM_Presenter.ViewModels
{
    [Serializable()]
    public class VideoViewModel : ThumbElementBase
    {
        public VideoViewModel() { base._fileType = FileTypeEnum.Video; }

        public VideoViewModel(PageViewModel parent)
            : this()
        {
            _path = "images/ButtonNone.png";
            _parent = parent;
        }

        public VideoViewModel(string videopath, string path, PageViewModel parent)
            : this(parent)
        {
            Path = path;
            VideoPath = videopath;
        }

        private string _videopath;
        public string VideoPath
        {
            get { return _videopath; }
            set
            {
                if (_videopath != value)
                {
                    _videopath = value;
                    NotifyPropertyChanged("VideoPath");
                }
            }
        }

        private bool _autoStart;
        public bool AutoStart
        {
            get { return _autoStart; }
            set
            {
                if (value != _autoStart)
                {
                    _autoStart = value;
                    NotifyPropertyChanged("AutoStart");
                }
            }
        }


    }
}
